<div data-role="content" data-scroll="y">
<div data-iscroll="scroller">

<!--
<div id="gallery">
			<div class="thumb">
			        <?php
			        if(!$is_avatar_exists): ?>
					<img src="<?php echo $gallery_path_url; ?>" />
					<?php endif; ?>		
			</div>
			<div id="blank_gallery">Please Upload an Image</div>
</div>
	
	<div id="upload">
		<?php
		echo form_open_multipart('user_controller/edit_profile?action=upload');
		echo form_upload('userfile');
		echo form_submit('upload', 'Upload');
		echo form_close();
		?>		
	</div>

-->
<?php echo validation_errors('<p class="error">'); ?>

<h4><?=$rows->email?></h4>

<?php echo form_open('user_controller/edit_profile');?>
<label for="title">Full Name:</label>
<input type=text name="fullname" value="<?=$rows->fullname?>">

<label for="location">Current Location:</label>
<input type=text name="location" value="<?=$rows->location?>">

<label for="birthdate">Birthday:</label>
<input name="birthdate" id="birthdate" type="date" value="<?="$rows->birthdate"?>" data-role="datebox"data-options='{"mode": "flipbox"}'>

<!-- 
<label for="username">Username:</label>
<input type=text name="username" value="<?=$rows->username?>">
<br>
-->


<fieldset data-role="controlgroup" data-type="horizontal">
	        <legend>Select the Sex You Want:</legend>
	        
	        <?php if($rows->gender==1):?>
     	    <input type="radio" name="gender" id="select-female" value="1" checked="checked" />
     	    <label for="select-female">Female</label>
     	 
         	<input type="radio" name="gender" id="select-male" value="0"  />
         	<label for="select-male">Male</label>
         	
         	<?php else: ?>
         	
         	 <input type="radio" name="gender" id="select-female" value="1" />
     	    <label for="select-female">Female</label>
     	 
         	<input type="radio" name="gender" id="select-male" value="0" checked="checked" />
         	<label for="select-male">Male</label>

			<?php endif; ?>
			
         </fieldset>    
         
<label for="interest">Interests In:</label>
<input type=text name="interest" value="<?=$rows->interest?>">

<label for="languages">Languages:</label>
<input type=text name="language" value="<?=$rows->language?>">

<label for="description">Description:</label>
<textarea rows="5" cols="20" name="description"><?=$rows->description?></textarea>

<input type=submit value="Submit Changes">
<?php echo form_close();?>
</div>
</div> 

